home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
amok_lha
/
amok72.lha
/
while-Interpreter
/
Source
/
JaNein.MOD
< prev
next >
Wrap
Text File
|
1993-08-15
|
429b
|
26 lines
IMPLEMENTATION MODULE JaNein;
FROM InOut IMPORT Read, WriteLn, WriteString;
PROCEDURE JaNein() : BOOLEAN;
VAR ch : CHAR;
BEGIN
WriteString(" (j/n) :");
ch:=" ";
WHILE (ch # "j") AND (ch # "J") AND (ch # "n") AND (ch # "N") DO
Read(ch);
END;
IF (ch="j") OR (ch="J") THEN
WriteString("Ja.");WriteLn;
RETURN TRUE;
ELSE
WriteString("Nein.");WriteLn;
RETURN FALSE;
END;
END JaNein;
END JaNein.